package com.mini.admin.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * 分页参数
 * @author Zhou Feng
 */
@Data
@ApiModel("菜单分页参数")
public class MenuPageDTO {
    @Min(value = 0, message = "页大小不能小于0")
    @ApiModelProperty(value = "页大小", example = "10")
    private Integer pageSize;
    @Min(value = 1, message = "页码不能小于1")
    @ApiModelProperty(value = "页码", example = "1")
    private Integer pageNum;
}
